<?php

namespace backend\models\right;

use Yii;

/**
 * This is the model class for table "job_right".
 *
 * @property integer $id
 * @property string $name
 * @property string $right
 * @property integer $is_del
 * @property integer $right_pid
 * @property integer $right_status
 */
class JobRight extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%right}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['is_del', 'right_pid', 'right_status'], 'integer'],
            [['name'], 'string', 'max' => 80],
            [['right'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'right' => 'Right',
            'is_del' => 'Is Del',
            'right_pid' => 'Right Pid',
            'right_status' => 'Right Status',
        ];
    }
}
